#ifndef SKILLMODEL_H
#define SKILLMODEL_H


#include "dtwentycore_global.h"
#include <itemtablemodel.h>
#include <QSortFilterProxyModel>


// note to self:
// instead of "ordinary" index - data getting, get actual object instead.
// ...


class DTWENTYCORESHARED_EXPORT SkillModel : public QSortFilterProxyModel
{
    Q_OBJECT

    Q_PROPERTY(int rowCount READ rowCount NOTIFY rowCountChanged)


public:

    explicit SkillModel(QObject *parent = 0);

    virtual QHash<int, QByteArray> roleNames() const;
    virtual QVariant data(const QModelIndex &index, int role) const;

    Q_INVOKABLE QObject* get(int row) const;


signals:

    void rowCountChanged();


};



#endif // SKILLMODEL_H
